package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface SetmealDao {
    public void add(Setmeal setmeal);
    public void setSetmealAndCheckGroup(Map map);
    public Page<CheckItem> findByCondition(String queryString);

    public List<Setmeal> findAll();

    public Setmeal findById(Integer id);

    public Setmeal findById4Detail(Integer id);

    public List<Map<String,Object>> findSetmealCount();

    public List<Map<String,Object>> findDataCount();

    public Map<String,Object> findSumData();
    List<Map> findByMemIdAndDate(@Param("startDate") String startDate, @Param("endDate") String endDate, @Param("tel") String tel);
}
